package cn.edu.stu.syllabus.repository.oaRead;

import javax.inject.Inject;

import cn.edu.stu.syllabus.di.qualifier.Local;
import cn.edu.stu.syllabus.di.scope.FragmentScoped;

/**
 * Created by daidaijie on 2017/3/24.
 */

@FragmentScoped
public class OaReadRepository implements OaReadDataSource {

    OaReadDataSource mOaReadLocalDataSource;

    @Inject
    public OaReadRepository(@Local OaReadDataSource oaReadLocalDataSource) {
        mOaReadLocalDataSource = oaReadLocalDataSource;
    }


    @Override
    public boolean isRead(long id) {
        return mOaReadLocalDataSource.isRead(id);
    }

    @Override
    public void setRead(long id) {
        mOaReadLocalDataSource.setRead(id);
    }

    @Override
    public void clearAllRead() {
        mOaReadLocalDataSource.clearAllRead();
    }
}
